package com.tencent.qcloud.timchat.utils;

//import com.google.firebase.iid.FirebaseInstanceId;
//import com.google.firebase.iid.FirebaseInstanceIdService;
//import com.tencent.imsdk.TIMManager;
//import com.tencent.imsdk.TIMOfflinePushToken;
//
//
///**
// * iid refresh
// */
//public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService {
//    private final static String TAG = "InstanceID";
//    @Override
//    public void onTokenRefresh() {
//        // Get updated InstanceID token.
//        String refreshedToken = FirebaseInstanceId.getInstance().getToken();
//        Log.d(TAG, "Refreshed token: " + refreshedToken);
//
//        if(!TextUtils.isEmpty(refreshedToken)) {
//            TIMOfflinePushToken param = new TIMOfflinePushToken(169, refreshedToken);
//
//            TIMManager.getInstance().setOfflinePushToken(param, null);
//        }
//    }
//}
